//
//  AFNByLN.h
//  TTSAmericanMovie
//
//  Created by dllo on 16/1/26.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef void(^sucessBlock)(id result);
typedef void(^errorBlock)(NSError *error);
@interface AFNByLN : NSObject
+(void)GetDataWithUrlStr:(NSString *)url
        withSuccessBlock:(sucessBlock)sucessBlock
          withErrorBlock:(errorBlock)errorBlock;
+ (CGRect)fitIphone6WithX:(CGFloat)X
                    withY:(CGFloat)Y
                withWidth:(CGFloat)width
               withHeight:(CGFloat)height;
#pragma mark - 计算时长
+(NSString*)TimeformatFromSeconds:(NSInteger)seconds;
#pragma mark - 计算多久前
+(NSString *) compareCurrentTime:(NSDate*) compareDate;
@end
